<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <jsp:include page="/user/common.jsp" />
	<script src="js/user/attention.js?v=1.0"></script>
	<style type="text/css">
		.letter-1{
				margin-left: 19%;
				margin-top: 40px;
		}
		.letter{
			width: 30%;
			float: left;
			border: 1px solid #E4E4E4;
			height: 500px;
		}
		.letter ul{
			margin-left: -32px;
		}
		.letter-current{
			background: #F7F7F7;
		}
	</style>
  </head>
<body>
<%--消息私信页面 --%>
<jsp:include page="/user/top.jsp"></jsp:include>
<jsp:include page="/user/msg/msgLeft.jsp"></jsp:include>
<div class="letter-1" >
	<div class="letter">
		<ul>
			<li>
				<input type="text" value="" style="width: 200px;height: 30px;">
				<button id="search" style="height: 30px;text-align: center;margin-top: 5px;">搜索</button>
			</li>
				<c:forEach items="${userAttentionList }" var="userAttention">
					<li title="双击选择发送对象!" ondblclick="choiceFriend(event);" name="${userAttention.userAttentionId }">${userAttention.chName }</li>
				</c:forEach>
		</ul>
	</div>
	<div style="width: 60%;float: left;border: 1px solid #E4E4E4;height:400px;margin-left: 20px;" >
		<div style="width: 100%;height: 35px;background: #F7F7F7;">新建私信</div>
		<div style="width: 100%;height: 265px;margin-left: 10px;">
			<div style="width: 100%;height: 35px;margin-top: 30px;">接 收 人 :<input type="text" readonly="readonly" id="chName" style="height: 35px;width: 520px;" value="${ua.chName }"><input type="hidden" id="receiveId" name="userId" value="${ua.id }"></div>
			<div style="margin-top: 30px;float: left;">内  容 :</div><div id="msgContent"  contentEditable="true" style="margin-top: 30px;margin-left:54px;floatl:left;border: 1px solid #E4E4E4;width: 520px;height: 180px;"></div>
			<div style="margin-left: 54px;margin-top: 12px;"><input type="button" value="私 信" style="height: 35px;width: 80px;" onclick="sendMsg();"></div>
		</div>
	</div>
</div>
</body>
</html>
